package com.azdebugit.result.common;

import java.io.Serializable;

public class ExtraParam implements Serializable {
    private static final long serialVersionUID = 1L;
    Long appId;
    Long tenantId;
    Long bg;
    String userToken;
    String bizCode;
    Long operatorId = -1L;
    String operatorName = "operator";
    String runAsUser;
    String runAsToken;
    String traceId;
    String module;
    String bizId;
    String realname = "operator";
    UserAuthInfoContext userAuthInfo;

    public Long getAppId() {
        return this.appId;
    }

    public Long getTenantId() {
        return this.tenantId;
    }

    public Long getBg() {
        return this.bg;
    }

    public String getUserToken() {
        return this.userToken;
    }

    public String getBizCode() {
        return this.bizCode;
    }

    public Long getOperatorId() {
        return this.operatorId;
    }

    public String getOperatorName() {
        return this.operatorName;
    }

    public String getRunAsUser() {
        return this.runAsUser;
    }

    public String getRunAsToken() {
        return this.runAsToken;
    }

    public String getTraceId() {
        return this.traceId;
    }

    public String getModule() {
        return this.module;
    }

    public String getBizId() {
        return this.bizId;
    }

    public String getRealname() {
        return this.realname;
    }

    public UserAuthInfoContext getUserAuthInfo() {
        return this.userAuthInfo;
    }

    public void setAppId(Long appId) {
        this.appId = appId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    public void setBg(Long bg) {
        this.bg = bg;
    }

    public void setUserToken(String userToken) {
        this.userToken = userToken;
    }

    public void setBizCode(String bizCode) {
        this.bizCode = bizCode;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }

    public void setRunAsUser(String runAsUser) {
        this.runAsUser = runAsUser;
    }

    public void setRunAsToken(String runAsToken) {
        this.runAsToken = runAsToken;
    }

    public void setTraceId(String traceId) {
        this.traceId = traceId;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public void setBizId(String bizId) {
        this.bizId = bizId;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public void setUserAuthInfo(UserAuthInfoContext userAuthInfo) {
        this.userAuthInfo = userAuthInfo;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof ExtraParam)) {
            return false;
        } else {
            ExtraParam other = (ExtraParam)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$appId = this.getAppId();
                Object other$appId = other.getAppId();
                if (this$appId == null) {
                    if (other$appId != null) {
                        return false;
                    }
                } else if (!this$appId.equals(other$appId)) {
                    return false;
                }

                Object this$tenantId = this.getTenantId();
                Object other$tenantId = other.getTenantId();
                if (this$tenantId == null) {
                    if (other$tenantId != null) {
                        return false;
                    }
                } else if (!this$tenantId.equals(other$tenantId)) {
                    return false;
                }

                Object this$bg = this.getBg();
                Object other$bg = other.getBg();
                if (this$bg == null) {
                    if (other$bg != null) {
                        return false;
                    }
                } else if (!this$bg.equals(other$bg)) {
                    return false;
                }

                label158: {
                    Object this$userToken = this.getUserToken();
                    Object other$userToken = other.getUserToken();
                    if (this$userToken == null) {
                        if (other$userToken == null) {
                            break label158;
                        }
                    } else if (this$userToken.equals(other$userToken)) {
                        break label158;
                    }

                    return false;
                }

                label151: {
                    Object this$bizCode = this.getBizCode();
                    Object other$bizCode = other.getBizCode();
                    if (this$bizCode == null) {
                        if (other$bizCode == null) {
                            break label151;
                        }
                    } else if (this$bizCode.equals(other$bizCode)) {
                        break label151;
                    }

                    return false;
                }

                Object this$operatorId = this.getOperatorId();
                Object other$operatorId = other.getOperatorId();
                if (this$operatorId == null) {
                    if (other$operatorId != null) {
                        return false;
                    }
                } else if (!this$operatorId.equals(other$operatorId)) {
                    return false;
                }

                label137: {
                    Object this$operatorName = this.getOperatorName();
                    Object other$operatorName = other.getOperatorName();
                    if (this$operatorName == null) {
                        if (other$operatorName == null) {
                            break label137;
                        }
                    } else if (this$operatorName.equals(other$operatorName)) {
                        break label137;
                    }

                    return false;
                }

                label130: {
                    Object this$runAsUser = this.getRunAsUser();
                    Object other$runAsUser = other.getRunAsUser();
                    if (this$runAsUser == null) {
                        if (other$runAsUser == null) {
                            break label130;
                        }
                    } else if (this$runAsUser.equals(other$runAsUser)) {
                        break label130;
                    }

                    return false;
                }

                Object this$runAsToken = this.getRunAsToken();
                Object other$runAsToken = other.getRunAsToken();
                if (this$runAsToken == null) {
                    if (other$runAsToken != null) {
                        return false;
                    }
                } else if (!this$runAsToken.equals(other$runAsToken)) {
                    return false;
                }

                Object this$traceId = this.getTraceId();
                Object other$traceId = other.getTraceId();
                if (this$traceId == null) {
                    if (other$traceId != null) {
                        return false;
                    }
                } else if (!this$traceId.equals(other$traceId)) {
                    return false;
                }

                label109: {
                    Object this$module = this.getModule();
                    Object other$module = other.getModule();
                    if (this$module == null) {
                        if (other$module == null) {
                            break label109;
                        }
                    } else if (this$module.equals(other$module)) {
                        break label109;
                    }

                    return false;
                }

                label102: {
                    Object this$bizId = this.getBizId();
                    Object other$bizId = other.getBizId();
                    if (this$bizId == null) {
                        if (other$bizId == null) {
                            break label102;
                        }
                    } else if (this$bizId.equals(other$bizId)) {
                        break label102;
                    }

                    return false;
                }

                Object this$realname = this.getRealname();
                Object other$realname = other.getRealname();
                if (this$realname == null) {
                    if (other$realname != null) {
                        return false;
                    }
                } else if (!this$realname.equals(other$realname)) {
                    return false;
                }

                Object this$userAuthInfo = this.getUserAuthInfo();
                Object other$userAuthInfo = other.getUserAuthInfo();
                if (this$userAuthInfo == null) {
                    if (other$userAuthInfo != null) {
                        return false;
                    }
                } else if (!this$userAuthInfo.equals(other$userAuthInfo)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof ExtraParam;
    }

    /*@Override
    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $appId = this.getAppId();
        int result = result * 59 + ($appId == null ? 43 : $appId.hashCode());
        Object $tenantId = this.getTenantId();
        result = result * 59 + ($tenantId == null ? 43 : $tenantId.hashCode());
        Object $bg = this.getBg();
        result = result * 59 + ($bg == null ? 43 : $bg.hashCode());
        Object $userToken = this.getUserToken();
        result = result * 59 + ($userToken == null ? 43 : $userToken.hashCode());
        Object $bizCode = this.getBizCode();
        result = result * 59 + ($bizCode == null ? 43 : $bizCode.hashCode());
        Object $operatorId = this.getOperatorId();
        result = result * 59 + ($operatorId == null ? 43 : $operatorId.hashCode());
        Object $operatorName = this.getOperatorName();
        result = result * 59 + ($operatorName == null ? 43 : $operatorName.hashCode());
        Object $runAsUser = this.getRunAsUser();
        result = result * 59 + ($runAsUser == null ? 43 : $runAsUser.hashCode());
        Object $runAsToken = this.getRunAsToken();
        result = result * 59 + ($runAsToken == null ? 43 : $runAsToken.hashCode());
        Object $traceId = this.getTraceId();
        result = result * 59 + ($traceId == null ? 43 : $traceId.hashCode());
        Object $module = this.getModule();
        result = result * 59 + ($module == null ? 43 : $module.hashCode());
        Object $bizId = this.getBizId();
        result = result * 59 + ($bizId == null ? 43 : $bizId.hashCode());
        Object $realname = this.getRealname();
        result = result * 59 + ($realname == null ? 43 : $realname.hashCode());
        Object $userAuthInfo = this.getUserAuthInfo();
        result = result * 59 + ($userAuthInfo == null ? 43 : $userAuthInfo.hashCode());
        return result;
    }*/

    @Override
    public String toString() {
        return "ExtraParam(appId=" + this.getAppId() + ", tenantId=" + this.getTenantId() + ", bg=" + this.getBg() + ", userToken=" + this.getUserToken() + ", bizCode=" + this.getBizCode() + ", operatorId=" + this.getOperatorId() + ", operatorName=" + this.getOperatorName() + ", runAsUser=" + this.getRunAsUser() + ", runAsToken=" + this.getRunAsToken() + ", traceId=" + this.getTraceId() + ", module=" + this.getModule() + ", bizId=" + this.getBizId() + ", realname=" + this.getRealname() + ", userAuthInfo=" + this.getUserAuthInfo() + ")";
    }

    public ExtraParam(Long appId, Long tenantId, Long bg, String userToken, String bizCode, Long operatorId, String operatorName, String runAsUser, String runAsToken, String traceId, String module, String bizId, String realname, UserAuthInfoContext userAuthInfo) {
        this.appId = appId;
        this.tenantId = tenantId;
        this.bg = bg;
        this.userToken = userToken;
        this.bizCode = bizCode;
        this.operatorId = operatorId;
        this.operatorName = operatorName;
        this.runAsUser = runAsUser;
        this.runAsToken = runAsToken;
        this.traceId = traceId;
        this.module = module;
        this.bizId = bizId;
        this.realname = realname;
        this.userAuthInfo = userAuthInfo;
    }

    public ExtraParam() {
    }
}
